/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package unc.pds.seen;

import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.naming.InitialContext;
import javax.naming.NamingException;

/**
 *
 * @author ain
 */
public class SearchEngineFactory {
    public static PDSSerchEngine getEngine() throws NamingException, CreateException, RemoteException{
        return (PDSSerchEngine) ((SimpleSearchEngineRemoteHome)(new InitialContext()).lookup("ejb/SimpleSearchEngine")).create();
    }
}
